package com.bjypc.youth.web;

import org.jfree.chart.JFreeChart;

import com.bjypc.youth.service.chart.FruitService;
import com.opensymphony.xwork2.ActionSupport;

public class ListAllFruit4Bar2Action extends ActionSupport {
    /**
	 * 
	 */
	private static final long serialVersionUID = -8850198530730248714L;
	private JFreeChart chart;
	
	@Override
	public String execute() throws Exception {
		chart = FruitService.createBarChart();
		return SUCCESS;
	}
	
	public JFreeChart getChart() {
		return chart;
	}

	public void setChart(JFreeChart chart) {
		this.chart = chart;
	}
	
}
